<!doctype html>
<html>

<head>
	<meta charset="utf-8">
	<title>首页_明月夜の博客</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<link rel="shortcut icon" href="/static/images/bitbug_favicon.ico" type="image/x-icon" />
	<link href="/static/css/base.css" rel="stylesheet">
	<link href="/static/css/index.css" rel="stylesheet">
	<link rel="stylesheet" href="/static/css/comments.css">
	<link href="/static/css/m.css" rel="stylesheet">
	<script src="/static/js/jquery.min.js" type="text/javascript"></script>
	<script src="/static/js/jquery.easyfader.min.js"></script>
	<script src="/static/js/scrollReveal.js"></script>
	<script src="/static/js/wangEditor.js"></script>
	<script src="/static/js/common.js"></script>
	<!--[if lt IE 9]>
	<script src="/static/js/modernizr.js"></script>
	<![endif]-->
</head>

<body>
	<header id="header">
		<!--menu begin-->
		<div class="menu">
			<nav class="nav" id="topnav">
				<h1 class="logo"><a href="index.html">明月夜の博客</a></h1>
				<li><a href="index.html">网站首页</a> </li>
				<li><a href="list.html">文章列表</a>
					<ul class="sub-nav">
						{% for category in params.categories %}
                              <li>
                                  <a href="/list?category_id={{ category.id }}">{{ category.cate_name }}</a>
                              </li>
                          {% endfor %}
					</ul>
				</li>
				<li><a href="photo.html">我的相册</a>
				</li>
				<li><a href="time.html">时间轴</a> </li>
				<li><a href="about.html">关于我</a> </li>
				<li><a href="release.html">发表博客</a></li>
				<li><a href="gbook.html">留言</a> </li>
			</nav>
		</div>
		<!--menu end-->
		{% if session.uid and session.uname %}
          <a id="login" target="_blank">欢迎:{{ session.uname }}</a>
          <a href="/logout" id="register" target="_blank">退出</a>
        {% else %}
          <a href="/login" id="login" target="_blank">登录</a>
          <a href="/register" id="register" target="_blank">注册</a>
        {% endif %}
		<!--mnav begin-->

		<div id="mnav">
			<h2><a href="main.html" class="mlogo">明月夜の博客</a><span class="navicon"></span></h2>
			<dl class="list_dl">
				<dt class="list_dt"> <a href="main.html">网站首页</a> </dt>
				<dt class="list_dt"> <a href="#">文章列表</a> </dt>
				<dd class="list_dd">
					<ul>
						{% for category in params.categories %}
                              <li>
                                  <a href="/list?category_id={{ category.id }}">{{ category.cate_name }}</a>
                              </li>
                          {% endfor %}
					</ul>
				</dd>
				<dt class="list_dt"> <a href="photo.html">我的相册</a> </dt>
				<dt class="list_dt"> <a href="time.html">时间轴</a> </dt>
				<dt class="list_dt"> <a href="gbook.html">留言</a> </dt>
				<dt class="list_dt"> <a href="about.html">关于我</a> </dt>
			</dl>
		</div>
		<!--mnav end-->
	</header>
	<div class="pagebg re"></div>
	<div class="container">
		<h1 class="t_nav"><span>不要轻易放弃。学习成长的路上，我们长路漫漫，只因学无止境。 </span>
			<p class="n1">表发博客</p>
		</h1>
		<div class="infosbox">
			<form action="/release" method="post" enctype="multipart/form-data">
				<br>
				<p>
					<input class="comment_input" id="author" maxlength="50" name="author" required="required" size="25" tabindex="1"
					 type="text">
					<label for="author">文章标题</label>
				</p>
				<br>
				<p class="classification">
					<!-- <input name="list" type="radio" value="1">个人博客
					<input name="list" type="radio" value="2">公开博客
					<input name="list" type="radio" value="3">其他博客 -->
                  {% for blogType in params.blogTypes %}
                  <input type="radio" name="list" value="{{blogType.id}}">{{blogType.type_name}}
                  {% endfor %}
                        </p>
                <!-- 显示博客的分类 -->
                        <p style="margin:15px 0 0 12px;">
                  <select name="category">
                    {% for category in params.categories %}
                    <option value="{{category.id}}">
                      {{category.cate_name}}
                    </option>
                    {% endfor %}
                  </select>
                  文章类别
                </p>
                <!-- 上传图片 -->
                <p style="margin:15px 0 0 12px; ">
                  <input type="file" name="picture" style="margin-right:12px;border:2px solid #e3e5e4;padding:2px;background-color:#f9f9f9;">
                  图片
                </p>

				<br>

				<textarea name="content" cols="80" rows="10" style="margin-left: 12px;margin-right: 12px"></textarea>
				<br>
				<p>
					<input id="id_article" name="article" type="hidden" value="1">
					<input name="submit" type="submit" id="submit" tabindex="5" value="提交" class="button" />
				</p>
				<br>
			</form>

		</div>
		<!--release end-->
		<div class="sidebar">
           <div class="tuijian">
            <h2 class="hometitle">点击排行</h2>
            <ul class="tjpic">
                {% for  topic in params.topics[0:1] %}
                <i><img src="/static/{{ topic.images }}"></i>
              <p><a href="/info?topic_id={{ topic.id }}">{{ topic.title }}</a></p>
                {% endfor %}
            </ul>
            <ul class="sidenews">
                {% for topic in params.topics[1:] %}
                    <li> <i><img src="/static/{{ topic.images }}"></i>
                    <p><a href="/info?topic_id={{ topic.id }}">{{ topic.title }}</a></p>
                    <span>{{ topic.pub_date.strftime('%Y-%m-%d') }}</span>
                    </li>
                {% endfor %}
            </ul>
          </div>
		</div>
	</div>

	<footer>
		<p>Design by <a href=# target="_blank">个人博客</a> <a href="#">备XXXXXXXX号-1</a></p>
	</footer>
	<a href="#" class="cd-top">Top</a>
</body>

</html>